<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<script type="text/javascript">

</script>
<c:if test="${code==1}">
	<form id="pagerForm" method="post" action="getMoneyCheck.action?toResult=courierMoneyCheck&rightId=${rightId}">
		<input type="hidden" name="pageNum" value="${page.currentPage }" /> 
		<input type="hidden" name="pageSize" value="${page.pageSize }" />
		<input type="hidden" name="year" value="${year}" />
		<input type="hidden" name="month" value="${month}" />
	</form>
 
	<form onsubmit="return navTabSearch(this);" action="getMoneyCheck.action?toResult=courierMoneyCheck&rightId=${rightId}" method="post">
		<div class="pageHeader">
			<input type="hidden" name="init" value=0>
			<div class="searchBar">
				<table class="searchContent">
					<tr>
							<td>年份: 
							<c:set value="${year}" var="selectYear" />
							<select id="year" name="year">
							<!-- 显示年份列表 -->
							<c:forEach var="years" items="${listyear}">								
								<c:if test="${years==selectYear}">
								<option  value="${years}" selected="selected">${years}</option>		
								</c:if>
								<c:if test="${years!=selectYear }">
								<option value="${years}">${years}</option>		
								</c:if>					
							</c:forEach> 
							</select>
							</td>
							<td>月份: 
							<select name="month">
							<s:if test="#request.month !=1">
									<option  value="1" >1月</option></s:if> 
							<s:elseif test="#request.month ==1">
								<option  value="1" selected="selected">1月</option></s:elseif>	
							<s:if test="#request.month !=2">
									<option  value="2" >2月</option></s:if> 
							<s:elseif test="#request.month ==2">
								<option  value="2" selected="selected">2月</option></s:elseif>					
							<s:if test="#request.month !=3">
									<option  value="3" >3月</option></s:if> 
							<s:elseif test="#request.month ==3">
								<option  value="3" selected="selected">3月</option></s:elseif>	
							<s:if test="#request.month !=4">
									<option  value="4" >4月</option></s:if> 
							<s:elseif test="#request.month ==4">
								<option  value="4" selected="selected">4月</option></s:elseif>									
							<s:if test="#request.month !=5">
									<option  value="5" >5月</option></s:if> 
							<s:elseif test="#request.month ==5">
								<option  value="5" selected="selected">5月</option></s:elseif>									
							<s:if test="#request.month !=6">
									<option  value="6" >6月</option></s:if> 
							<s:elseif test="#request.month ==6">
								<option  value="6" selected="selected">6月</option></s:elseif>									
							<s:if test="#request.month !=7">
									<option  value="7" >7月</option></s:if> 
							<s:elseif test="#request.month ==7">
								<option  value="7" selected="selected">7月</option></s:elseif>									
							<s:if test="#request.month !=8">
									<option  value="8" >8月</option></s:if> 
							<s:elseif test="#request.month ==8">
								<option  value="8" selected="selected">8月</option></s:elseif>									
							<s:if test="#request.month !=9">
									<option  value="9" >9月</option></s:if> 
							<s:elseif test="#request.month ==9">
								<option  value="9" selected="selected">9月</option></s:elseif>									
							<s:if test="#request.month !=10">
									<option  value="10" >10月</option></s:if> 
							<s:elseif test="#request.month ==10">
								<option  value="10" selected="selected">10月</option></s:elseif>									
							<s:if test="#request.month !=11">
									<option  value="11" >11月</option></s:if> 
							<s:elseif test="#request.month ==11">
								<option  value="11" selected="selected">11月</option></s:elseif>									
							<s:if test="#request.month !=12">
									<option  value="12" >12月</option></s:if> 
							<s:elseif test="#request.month ==12">
								<option  value="12" selected="selected">12月</option></s:elseif>	
													
							</select>
							</td>
						<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
						<td>
							<div class="buttonActive">
								<div class="buttonContent">
									<button type="submit">检索</button>
								</div>
							</div>
						</td>
					</tr>
				</table>
			</div>
		</div>
			<div class="pageContent">
			<div class="panelBar">
				<ul class="toolBar">
					<c:forEach items="${righSubtList}" var="rightsub">
						
						<!-- 修改网点状态-->
						<c:if test="${fn:contains(rightsub.rightValue,'turnoutMoneyCheck')}">
							<li><a class="edit" href="${rightsub.rightValue}&supportID={sid_support}&rightId=${rightId}" target="navTab" ><span>${rightsub.rightName}</span> </a>
							</li>
							<li class="line">line</li>
						</c:if>
						
					</c:forEach>
				</ul>
			</div>
			<table class="list" width="100%" layoutH="138">
				<thead>
					<tr>
						<th align="center">序号</th>
						<th align="center">工时奖励金额</th> 
						<th align="center">是否审核</th> 
						<th align="center">订单奖励金额</th> 
						<th align="center">是否审核</th> 
						<th align="center">一小时合格率奖励金额</th> 
						<th align="center">是否审核</th> 
						<th align="center">总金额</th> 
						<th align="center">是否提现</th> 
						<th align="center">电话</th>
						<th align="center">真实姓名</th> 

					</tr>
				</thead>
				<tbody>
					<s:iterator var="monthInfo" value="page.data" status="st">
						<tr target="sid_support" rel="<s:property value="#monthInfo.id" />">
							<th width="1%" align="center"><s:property value="page.pageSize * (page.currentPage-1) + #st.index + 1" />
							</th>
							<th width="5%" align="left"><s:property value="#monthInfo.onLineTimeReward" />
							</th>
							<th width="5%" align="left">
							<s:if test="#monthInfo.onLineTimeCheck==0">
								<span style="color :red">未审核</span>
							</s:if> <s:elseif test="#monthInfo.onLineTimeCheck==1">
								<span style="color :green">已审核</span>
							</s:elseif>
							</th>
							<th width="5%" align="left"><s:property value="#monthInfo.orderCountReward" />
							</th>
							<th width="5%" align="left">
							<s:if test="#monthInfo.orderCountCheck==0">
								<span style="color :red">未审核</span>
							</s:if> <s:elseif test="#monthInfo.orderCountCheck==1">
								<span style="color :green">已审核</span>
							</s:elseif>
							</th>
							<th width="5%" align="left"><s:property value="#monthInfo.oneHourCountReward" />
							</th>
							<th width="5%" align="left">
							<s:if test="#monthInfo.oneHourCountCheck==0">
								<span style="color :red">未审核</span>
							</s:if> <s:elseif test="#monthInfo.oneHourCountCheck==1">
								<span style="color :green">已审核</span>
							</s:elseif>
							</th>
							
							<th width="5%" align="left"><s:property value="#monthInfo.oneHourCountReward+#monthInfo.orderCountReward+#monthInfo.onLineTimeReward" />
							</th>
							<th width="5%" align="left">
							<s:if test="#monthInfo.isFinish==0">
								<span style="color :red">未提现</span>
							</s:if> <s:elseif test="#monthInfo.isFinish==1">
								<span style="color :green">已提现</span>
							</s:elseif>
							</th>
							
							<th width="5%" align="left"><s:property value="#monthInfo.mobile" />
							</th>
							<th width="5%" align="left"><s:property value="#monthInfo.realName" />
							</th> 

						</tr>
					</s:iterator>
				</tbody>
			</table>
			<div class="panelBar">
				<div class="pages">
					<span>共${page.totalNum }条，共${page.totalPage }页</span>
				</div>
				<div class="pagination" targetType="navTab" totalCount="${page.totalNum }" numPerPage="${page.pageSize }" pageNumShown="10" currentPage="${page.currentPage }"></div>
			</div>
		</div>
	</form>
</c:if>
<c:if test="${code==0}">
	${message}
</c:if>